1. /* scfcpowd.cpp by K.Tsuru */
  2. // function ID = 9104
  3. /********************************
  4. SComplex class
  5. It returns z^a = exp(a*log(z)).
  6. *********************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SComplex Cpow(const SComplex& z, const SDouble& a){
  11. if( z.IsZero(9104) ) SNManager::SetError(SNManager::DOMAIN_ERR, "Cpow", 9104);// z == 0
  12. if( a.Sign(9104) == 0 ) return 1.0; // a == 0
  13. SComplex b;
  14. b = Clog(z);
  15. b *= a;
  16. return Cexp(b);
  17. }

scfcpowd.cpp : last modifiled at 2015/09/07 15:55:51(467 bytes)
created at 2017/10/06 15:21:28
The creation time of this html file is 2017/10/06 15:27:09 (Fri Oct 06 15:27:09 2017).